package com.tust.app.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.tust.app.dao.TVideoMapper;
import com.tust.app.domain.TVideo;
import com.tust.app.service.TVideoService;
@Service
public class TVideoServiceImpl implements TVideoService{

    @Resource
    private TVideoMapper tVideoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tVideoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TVideo record) {
        return tVideoMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TVideo record) {
        return tVideoMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TVideo record) {
        return tVideoMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TVideo record) {
        return tVideoMapper.insertSelective(record);
    }

    @Override
    public TVideo selectByPrimaryKey(Integer id) {
        return tVideoMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TVideo record) {
        return tVideoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TVideo record) {
        return tVideoMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<TVideo> list) {
        return tVideoMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TVideo> list) {
        return tVideoMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TVideo> list) {
        return tVideoMapper.batchInsert(list);
    }

    @Override
    public List<TVideo> selectAll() {
        return tVideoMapper.selectAll();
    }

    @Override
    public TVideo selectById(Integer id) {
        return tVideoMapper.selectById();
    }
}
